﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnyGrid.Renderers
{
    public static class GridRenderers
    {
        private static ICollection<BaseGridRenderer> _renderers = new List<BaseGridRenderer>();
        public static ICollection<BaseGridRenderer> Renderers { get { return _renderers;  } }

        private static BaseGridRenderer _current = new AnyGrid.Renderers.JqGrid.JqGridRenderer();
        public static BaseGridRenderer Current
        {
            get
            {
                return _current;
            }
            set
            {
                if (value == null)
                {
                    throw new InvalidOperationException();
                }
                _current = value;
            }
        }
    }
}
